﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AhCha.Fortunate.ModelsDto.Public
{
    public class AliYunOCRInput
    {

        /// <summary>
        /// 图像数据：base64编码，要求base64编码后大小不超过25M，最短边至少15px，
        /// 最长边最大8192px，支持jpg/png/bmp格式，和url参数只能同时存在一个
        /// </summary>
        public string? img { get; set; }

        /// <summary>
        /// 图像url地址：图片完整URL，URL长度不超过1024字节，URL对应的图片base64编码后大小不超过25M，最短边至少15px，
        /// 最长边最大8192px，支持jpg/png/bmp格式，和img参数只能同时存在一个
        /// </summary>
        public string? url { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public bool prob { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public bool charInfo { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public bool rotate { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public bool table { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public bool sortPage { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public bool noStamp { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public bool figure { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public bool row { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public bool paragraph { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public bool oricoord { get; set; }


    }

    public class OpenApiOutput
    {
        public OpenApiOutput()
        {
            IdCard = "未识别成功";
            Phone = "未识别成功";
            Age = "未识别成功";
        }
        public string IdCard { get; set; }
        public string Phone { get; set; }
        public string Age { get; set; }
        public string Data { get; set; }
    }

    public class Pos
    {
        /// <summary>
        /// 
        /// </summary>
        public int x { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int y { get; set; }
    }

    public class Prism_wordsInfo
    {
        /// <summary>
        /// 有移动电话号码，且2年内限制其身份证件或组织机构代码等证件办理
        /// </summary>
        public string word { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<Pos> pos { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int direction { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int angle { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int x { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int y { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int width { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int height { get; set; }
    }

    public class Root
    {
        public string sid { get; set; }
        public string prism_version { get; set; }
        public int prism_wnum { get; set; }

        public List<Prism_wordsInfo> prism_wordsInfo { get; set; }

        public int height { get; set; }

        public int width { get; set; }
        public int orgHeight { get; set; }
        public int orgWidth { get; set; }
        public string content { get; set; }
        public string algo_version { get; set; }
    }

}
